package com.amumu.netctoss.vo;

public class ClientUsingHost {
	private String unixHost;
	private String loginName;
	private String realName;
	private String idcardNo;
	private Long duration;
	public String getUnixHost() {
		return unixHost;
	}
	public void setUnixHost(String unixHost) {
		this.unixHost = unixHost;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	public String getIdcardNo() {
		return idcardNo;
	}
	public void setIdcardNo(String idcardNo) {
		this.idcardNo = idcardNo;
	}
	public Long getDuration() {
		return duration;
	}
	public void setDuration(Long duration) {
		this.duration = duration;
	}
	public String toDuration(){
		if(duration==null) return null;
		String str ="";
		long hour = this.duration/3600;
		long minute = (this.duration%3600)/60;
		long second = this.duration%60;
		if(hour>0){
			str+=hour+"小时";
		}
		if(minute>0){
			str+=minute+"分";
		}
		str+=second+"秒";
		return str;
	}
	
}
